import 'package:flutter/material.dart';


class GQ_CheckBox extends StatefulWidget {
  bool isCheck;
  GestureTapCallback onPress;
  GQ_CheckBox({required this.isCheck, required this.onPress});

  @override
  State<StatefulWidget> createState() => GQ_CheckBoxState();
}

class GQ_CheckBoxState extends State<GQ_CheckBox> {
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      child: Image.asset(
        widget.isCheck
            ? "images/icon/check_select.png"
            : "images/icon/check_normal.png",
        width: 16,
        height: 16,
      ),
      onTap: widget.onPress,
    );
  }
}
